<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2023/3/21
  Time: 14:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <title>购物车</title>
</head>
<body>
这里是结账柜台，请确认以下信息。<br>
<form>
    <%
      request.setCharacterEncoding("utf-8");//获取卡号
      String id=(String)session.getAttribute("id");//获取购物清单
      String goods[]=request.getParameterValues("goods");
      out.print("您的会员卡号："+id+"<br>");
      out.print("购物车中的物品清单:<br>");
      for (int i=0;i<goods.length;i++){
          out.println(goods[i]+"<br>");
          String[] str =goods[i].split(" ");
      }
    %>
    <br>
    <br>
    <br>
    <a href="login1.jsp">欢迎修改会员卡号！</a>
        <a href="food.jsp">返回购物平台！</a>
</form>
</body>
</html>
